package com.wuliming.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wuliming.common.utils.PageUtils;
import com.wuliming.gulimall.product.entity.AttrEntity;
import com.wuliming.gulimall.product.entity.ProductAttrValueEntity;
import com.wuliming.gulimall.product.entity.vo.req.AttrReqVo;
import com.wuliming.gulimall.product.entity.vo.resp.AttrRespVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author wuliming
 * @email wuliming@gmail.com
 * @date 2023-12-05 12:11:06
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(AttrReqVo attr);

    PageUtils queryListPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getByIdInfo(Long attrId);

    void updateDetail(AttrReqVo attr);

    List<ProductAttrValueEntity> listforspu(Long spuId);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

